package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.AddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-member")
public interface AddressFeign {
    @GetMapping("/member/memberreceiveaddress/userAddress")
    public List<AddressVo> list(@RequestParam("memberId") Long memberId);

    @GetMapping("/member/memberreceiveaddress/getAddressById")
    public AddressVo getAddressById(@RequestParam("addressId") Long addressId);


}
